import React from 'react';
import TitleLayout from '@/layout/title-return';
import { useHistory } from 'umi';
import { routesPath } from '@/config/routes';
import css from './index.less';

export default () => {
  return (
    <TitleLayout title="首页排盘">
      <BaziPaipan />
    </TitleLayout>
  );
};

function BaziPaipan() {
  const history = useHistory();
  return (
    <div className={css.form}>
      <div
        className={css.submit}
        onClick={() => {
          history.push(routesPath.bazidetail);
        }}
      >
        开始排盘
      </div>
    </div>
  );
}
